<template>
  <div class="water-mark"></div>
</template>

<script>
import { loadWM, unloadWM } from "../../factory/util.js";
export default {
  data() {
    return {};
  },
  beforeDestroy() {
    unloadWM(this.$el);
  },
  mounted() {
    let obj = {
      content: "琦公主",
      contentType: 1,
      fontFamliy: "SimHei",
      fontSize: 18,
      position: ["report"],
      switch: true,
      textColor: "#8F8E8E",
      watermarkSwitch: true
    };
    loadWM(obj, this.$el);
    console.log(this.$el, "ooo");
  },
  methods: {}
};
</script>

<style>
.water-mark {
  width: 100%;
  height: 100vh;
}
</style>
